package test2.pojo;

import java.util.ArrayList;
import java.util.List;

public class SeVo
{
	private String name = "";

	private long id = 0;

	private List<Rate> rates = new ArrayList<>();

	public void addRate(long id, double value, int number)
	{
		this.rates.add(new Rate());
	}

	public void getRate(long id)
	{
		this.rates.add(new Rate());
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public long getId()
	{
		return id;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public List<Rate> getRates()
	{
		return rates;
	}

	public void setRates(List<Rate> rates)
	{
		this.rates = rates;
	}

	class Rate
	{
		private long id = 0;

		private double value = 0d;

		public long getId()
		{
			return id;
		}

		public void setId(long id)
		{
			this.id = id;
		}

		public double getValue()
		{
			return value;
		}

		public void setValue(double value)
		{
			this.value = value;
		}

	}
}
